#pragma once
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/ptree_fwd.hpp>
extern boost::property_tree::ptree config;
enum ErrorCodes {
  Success = 0,
  JsonError = 1001,
  RPCFailed = 1002,
  VerifyExpired = 1003,
  VerifyCodeError = 1004,
  UserExist = 1005,
  EmailError = 1006,
  DataBaseError = 1007,
  PasswdInvalid = 1008,
};

const std::string CODEPREFIX = "code_";